package love.yuanmengrobot.guoyitang.controller;


import java.util.ArrayList;
import java.util.List;

import love.yuanmengrobot.guoyitang.entity.User;
import love.yuanmengrobot.guoyitang.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


@RestController
@CrossOrigin
@RequestMapping("user")  
public class UserController {
    @Autowired
	private UserService userservice;

    /**
     * 获取所有的数据信息
     * @return
     */
         @RequestMapping("/findall")
         public List<User> findALL(){
	      return userservice.findAll();
         }
	
         

         
}
